package com.enjoy.dome.app;

import android.app.Application;

import com.enjoy.dome.manage.IDataProcessor;
import com.enjoy.xbase.qk.TaskManger;

public class MyApp extends Application {
    public static final int STATUS_FORCE_KILLED = 0;
    public static final int STATUS_NORMAL = 1;//正常启动
    private static MyApp instance;
    private int appStatus = STATUS_NORMAL;


    public static MyApp getInstance() {
        return instance;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        instance = this;
        init();
    }
    private void init() {
        //初始化网络请求
        TaskManger.init(null, new IDataProcessor(), null);
    }

    public int getAppStatus() {
        return appStatus;
    }

    public void setAppStatus(int appStatus) {
        this.appStatus = appStatus;
    }

}
